#!/usr/local/bin/python

import sys,os

TELNET="/usr/bin/telnet"
GREP="/usr/bin/grep"
SCRIPTPATH=str(sys.path[0])+"\/"
CUT="/usr/bin/cut"
SH="/bin/sh"

command=SH + " "  + SCRIPTPATH+ "asterisk_showuptime.sh | " + TELNET + " | " + GREP + " reload |" + CUT + " -c 15-100"


os.system(command)
#fileOpen = os.popen(command,'r')

#fileOpen.close()